package com.wang.study;

import com.wang.study.Proxy.JdkDynamicProxyUtil;
import com.wang.study.commons.MybatisUtils;
import com.wang.study.mapper.GoodsMapper;
import com.wang.study.service.GoodsService;
import com.wang.study.service.impl.GoodsServiceImp;

public class Test {
    public static void main(String[] args) {
//        GoodsMapper mapper = MybatisUtils.getMapper(GoodsMapper.class);
//        System.out.println(mapper.findGoodsAll());
//        GoodsService goodsService = new JdkDynamicProxyUtil<GoodsService>().getProxyObject(new GoodsServiceImp());
//        System.out.println(goodsService.findGoodsAll1());

        for (int i = 0; i < 5; i++) {
            MybatisUtils.getSqlSession().commit();
        }
    }
}
